/*************************************************************************
	> File Name: 008.main函数多参数.c
	> Author: Maureen 
	> Mail: Maureen@qq.com 
	> Created Time: 五  8/27 18:51:42 2021
 ************************************************************************/

#include <stdio.h>

void output(int argc, char *argv[]) {
    printf("argc = %d\n", argc);
    for (int i = 0; i < argc; i++) {
        printf("argv[%d] = %s\n", i, argv[i]);
    }
    return ;
}

int main(int argc, char *argv[]) {
    output(argc, argv);
    return 0;
}

//运行测试结果:
//./a.out "hello world"                                                                                                     [0]
//argc = 2
//argv[0] = ./a.out
//argv[1] = hello world
